package org.example.service;

import org.example.pojo.AjaxResult;
import org.example.pojo.Page;
import org.example.pojo.User;

import java.util.Date;

public interface UserServiceI {

    public AjaxResult userGet(long id);

    public AjaxResult login(String username, String password);

    public Page<User> userSearch(int pageNo, int limit, String name, Date start, Date end);

    public AjaxResult userAdd(User user);

    public AjaxResult userUpdate(User user);

    public AjaxResult del(long id);

    public AjaxResult batchDel(long[] ids);

    public AjaxResult checkUserNameRepeat(String userName, Long id);

}
